/*
 * @Author: CQJ
 * @Date: 2022-08-28 23:33:11
 * @LastEditors: CQJ
 * @LastEditTime: 2022-09-05 11:15:34
 * @Description:
 */

import type { RoleListData } from '@/types/site/role'
export const roleData = [
  {
    id: '00122', //角色id
    belongFilm: '阿甘正传', //所属影片
    roleName: '周星驰', //角色名称
    playRole: '汤姆.汉克斯', //饰演影人
    popularity: '78912',
    created_at: '2018-05-27 09:55:09',
    status: 1
  },
  {
    id: '00123', //角色id
    belongFilm: '阿甘正传', //所属影片
    roleName: '刘德华',
    playRole: '汤姆.汉克斯',
    popularity: '28912',
    created_at: '2018-05-27 09:55:09',
    status: 1
  },
  {
    id: '00124', //角色id
    belongFilm: '阿甘正传', //所属影片
    roleName: '刘嘉玲',
    playRole: '汤姆.汉克斯',
    popularity: '7512',
    created_at: '2018-05-27 09:55:09',
    status: 1
  },
  {
    id: '00125', //角色id
    belongFilm: '阿甘正传', //所属影片
    roleName: '谢霆锋',
    playRole: '汤姆.汉克斯',
    popularity: '44442',
    created_at: '2018-05-27 09:55:09',
    status: 1
  },
  {
    id: '00126', //角色id
    belongFilm: '阿甘正传', //所属影片
    roleName: '谢霆锋',
    playRole: '汤姆.汉克斯',
    popularity: '44442',
    created_at: '2018-05-27 09:55:09',
    status: 1
  },
  {
    id: '00127', //角色id
    belongFilm: '阿甘正传', //所属影片
    roleName: '谢霆锋',
    playRole: '汤姆.汉克斯',
    popularity: '44442',
    created_at: '2018-05-27 09:55:09',
    status: 1
  },
  {
    id: '00128', //角色id
    belongFilm: '阿甘正传', //所属影片
    roleName: '谢霆锋',
    playRole: '汤姆.汉克斯',
    popularity: '44442',
    created_at: '2018-05-27 09:55:09',
    status: 1
  },
  {
    id: '00129', //角色id
    belongFilm: '阿甘正传', //所属影片
    roleName: '谢霆锋',
    playRole: '汤姆.汉克斯',
    popularity: '44442',
    created_at: '2018-05-27 09:55:09',
    status: 1
  },
  {
    id: '00130', //角色id
    belongFilm: '阿甘正传', //所属影片
    roleName: '谢霆锋',
    playRole: '汤姆.汉克斯',
    popularity: '44442',
    created_at: '2018-05-27 09:55:09',
    status: 1
  },
  {
    id: '00131', //角色id
    belongFilm: '阿甘正传', //所属影片
    roleName: '谢霆锋',
    playRole: '汤姆.汉克斯',
    popularity: '44442',
    created_at: '2018-05-27 09:55:09',
    status: 1
  },
  {
    id: '00132', //角色id
    belongFilm: '阿甘正传', //所属影片
    roleName: '谢霆锋',
    playRole: '汤姆.汉克斯',
    popularity: '44442',
    created_at: '2018-05-27 09:55:09',
    status: 1
  }
]
export const column = [
  {
    title: '角色ID',
    key: 'role_id',
    dataIndex: 'role_id',
    width: 190
  },

  {
    title: '所属影片',
    dataIndex: 'role_video_name',
    key: 'role_video_name'
  },
  {
    title: '角色名称',
    key: 'role_name',
    dataIndex: 'role_name'
  },
  {
    title: '饰演影人',
    key: 'role_person_name',
    dataIndex: 'role_person_name'
  },
  {
    title: '人气',
    key: 'role_popularity',
    dataIndex: 'role_popularity',
    sorter: (a: RoleListData, b: RoleListData) => (a.role_popularity as any) - (b.role_popularity as any),
    showSorterTooltip: false,
    sortDirections: ['descend', 'ascend']
  },
  {
    title: '创建时间',
    key: 'created_at',
    dataIndex: 'created_at',
    width: 190
  },
  {
    title: '状态',
    key: 'role_status',
    dataIndex: 'role_status'
  },
  {
    title: '操作',
    key: 'action',
    fixed: 'right',
    width: 120
  }
]
